package com.headwind.logistics.logistics.mapper;

import com.headwind.logistics.logistics.pojo.LogisticsWorkOrder;
import com.headwind.logistics.logistics.pojo.LogisticsWorkOrderContent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 小恶魔
 * @Date 2020-08-01 9:05
 * @Version 1.0
 * @DESCRIPTION 前台客户工单数据访问层
 */
public interface LogisticsCustomerWorkOrderMapper {

    /**
     * 根据顾客id获取工单信息
     * @param startDate
     * @param endDate
     * @param customerId
     * @param page
     * @param rows
     * @return
     */
    List<LogisticsWorkOrder> queryWorkOrderByCustomerId(@Param("startDate")String startDate
            ,@Param("endDate")String endDate
            ,@Param("customerId")Long customerId
            ,@Param("page")Integer page
            ,@Param("rows")Integer rows);

    /**
     * 添加工单内容表
     * @param logisticsWorkOrderContent
     * @return
     */
    Integer addWorkOrderContent(LogisticsWorkOrderContent logisticsWorkOrderContent);

    /**
     * 修改工单状态
     * @param workOrder
     * @return
     */
    Integer updateWorkOrder(LogisticsWorkOrder workOrder);
}
